package com.tbit.uqbike.object.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tbit.uqbike.webmanager.util.csv.annotations.Csv;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @Author: chen
 * @Description: 调度申请车辆
 * @Date: 创建于 15:52 2023/2/10
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("dispatchapplymachine")
public class DispatchApplyMachine {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer boundId;
    /**
     * 区域ID
     */
    private Integer accountId;
    /**
     * 设备ID
     */
    private Integer machineId;
    /**
     * 车辆编号
     */
    @Csv(name = "车辆编号")
    private String userCode;
    /**
     * 中控编号
     */
    private String machineNO;
    /**
     * 绑定时间
     */
    private Date addTime;
    /**
     * 申请id
     */
    private Integer applyId;
    /**
     * 备注
     */
    @Csv(name = "备注")
    private String remark;

    public DispatchApplyMachine(Integer accountId, Integer machineId, String userCode,
                                String machineNO, Date addTime, Integer applyId, String remark) {
        this.accountId = accountId;
        this.machineId = machineId;
        this.userCode = userCode;
        this.machineNO = machineNO;
        this.addTime = addTime;
        this.applyId = applyId;
        this.remark = remark;
    }
}
